package com.usp.cloudendpoint;

import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.api.server.spi.config.ApiNamespace;

@Api(name = "messagepojoendpoint", namespace = @ApiNamespace(ownerDomain = "usp.com", ownerName = "usp.com", packagePath = "cloudendpoint"))
public class MessagePojoEndpoint {

	
	/**
	 * This method gets the entity having primary key id. It uses HTTP GET method.
	 *
	 * @param id the primary key of the java bean.
	 * @return The entity with primary key id.
	 */
	@ApiMethod(name = "getMessagePojo")
	public MessagePojo getMessagePojo() {
		MessagePojo message = new MessagePojo();
		message.setMessage("Swadharme nidhanam shreyah paradharmo bhayaavahah");
		return message;
	}
}
